$--color-primary: #2dce89;
$--text-color-primary: #303133;

$--color-f5: #c2bfbf;
$--color-white: #ffffff;

$menu-light-bg: #42424a;
$menu-dark-bg: #39393f;
$menu-hover: hsla(0,0%,78%,.2);
$border-color: #d8dce5;
$box-shadow-color: #c2c2c4;
$main-bg: #f5f6fa;

.el-main {
    padding: 0;
    overflow-x: hidden;
    .search {
        .el-button {
            // width: 76px;
            height: 30px;
        }
    }
    .el-pagination {
        margin-top: 15px;
    }
}
.layout {
    height: 100%;
    .aside {
        background-color: $menu-light-bg;
        // width: 220px;
    }
    .header {
        height: 70px;
        border-bottom: 1px solid $border-color;
        display: flex;
        align-items: center;
        padding: 10px;
        justify-content: space-between;
        .collaose-bread {
            display: flex;
            align-items: center;
        }
        background-color: $main-bg;
    }
    .main {
        padding: 0px;
        background-color: $main-bg;
        .tabs {
            .el-tabs__header {
                border-bottom: 1px solid $border-color;
                box-shadow: 0 5px 8px -5px $box-shadow-color;
                margin: 0 0 1px;
                .el-tabs__nav {
                    background-color: $--color-white;
                    // .el-tabs__item {
                    //     border-bottom: 0;
                    // }
                    .el-tabs__item.is-active {
                        color: $--color-primary;
                    }
                }
            }
        }
        .main-body {
            height: calc(100vh - 145px);
            overflow-y: auto;
            padding: 10px;
            // padding-top: 20px;
            background: #FFFFFF;
        }
    }
}

.el-menu-vertical:not(.el-menu--collapse) {
    width: 230px;
    min-height: 400px;
}
.el-menu {
    border: none;
    background-color: $menu-light-bg;
    .el-menu-item {
        background-color: $menu-light-bg;
    }
    .el-sub-menu {
        .el-menu-item {
            background-color: $menu-light-bg;
        }
    }
    .el-menu-item * {
        vertical-align: middle;
    }
    .el-menu-item,
    .el-sub-menu__title {
        height: 45px;
        line-height: 45px;
        color: $--color-white;
    }
    .el-menu-item {
        &:hover {
            color: $--color-white !important;
            background: $menu-hover;
        }
    }
    .el-sub-menu__title {
        &:hover {
            color: $--color-white !important;
            background: $menu-hover;
        }
    }
    .el-menu-item.is-active {
        color: $--color-primary !important;
    }
    .el-sub-menu__title {
        color: $--color-white !important;
        background: $menu-light-bg;
    }
    .el-submenu__title {
        margin-top: 4px;
        margin-bottom: 4px;
    }
    .is-opened {
        .el-menu-item {
            background-color: $menu-dark-bg !important;
        }
        .el-menu-item {
            &:hover {
                background-color: $menu-hover !important;
            }
        }
    }
    .el-sub-menu__title {
        .tip {
            color: #FFFFFF;
            background: #FF6A6A;
            margin-left: 10px;
            padding: 2px 5px;
            border-radius: 10px;
        }
    }
    .el-menu-item {
        .tip {
            height: 20px;
            line-height: 20px;
            color: #FFFFFF;
            background: #FF6A6A;
            margin-left: 10px;
            padding: 0 5px;
            border-radius: 10px;
        }
    }
}
.el-menu--popup {
    padding: 0;
}

.small-menu {
    background-color: $menu-light-bg;
    .el-drawer__body {
        padding: 0 !important;
        overflow-x: hidden !important;
    }
}

.el-pagination {
    .el-pager {
        li {
            margin: 0 1px;
        }
    }
    .el-icon {
        height: 1em;
    }
}
.pagination {
    display: flex;
    justify-content: flex-end;
}

@keyframes logoAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}
.layout-logo {
    animation: logoAnimation 1s ease-out;
}
.logo {
    height: 50px;
    border: none;
    line-height: 50px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    padding-right: 0;
    color: $--color-white;
    background-color: $menu-light-bg;
    img {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    span {
        font-weight: 600;
        line-height: 50px;
        font-size: 16px;
        font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
        vertical-align: middle;
    }
}


// 登录
.login_container,.install_container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    align-items: center;
    color: #fff;
    background-image: linear-gradient(
        to bottom right,
        rgb(114, 135, 254),
        rgb(130, 88, 186)
    );
    .container {
        width: 321px;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 36px;
        border-radius: 5px;
        margin: 0 auto;
        h1 {
            text-align: center;
            margin-bottom: 30px;
        }
        .captcha {
            width: 100px;
            height: 32px;
            background: #ffffff;
        }
        .el-button {
            width: 100%;
        }
        .el-form-item__label {
            color: #fff;
        }
    }
}

// 文章新增、编辑
.wave-uploader {
    width: 100%;
    .wave-img {
        width: 300px;
        height: 178px;
        display: block;
    }
    .el-upload {
        border: 1px dashed #dcdfe6;
        border-radius: 6px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: .2s;
    }
    .el-upload:hover {
        border-color: #409eff;
    }
    .el-icon.wave-uploader-icon {
        font-size: 28px;
        color: #8c939d;
        width: 300px;
        height: 178px;
        text-align: center;
    }
    .el-upload__tip {
        margin-top: 0;
    }
    .wave-uploader-favicon {
        width: 68px;
        height: 68px;
    }
    .wave-logo, .wave-dark-logo {
        width: 200px;
    }
    .wave-logo {
        background-color: #303133;
    }
}

.el-form {
    .long-text {
        .el-form-item__label {
            height: auto;
            line-height: normal;
        }
    }
}